﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true"
    CodeBehind="gather_add.aspx.cs" Inherits="Icst.Leaflike.Web.gather.add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
    <form runat="server">
        <div style="padding:5px">
            <h3><img src="image/gathering.jpg" style="width:16px; height:16px;"/>采集入库</h3>
            <ul class="menutabs">
                <li><asp:LinkButton ID="LinkButton2" runat="server" Text="确定" OnClick="btnOK_Click"/></li>
                <li><asp:LinkButton ID="btnDelete1" runat="server" CausesValidation="false" Text="删除" OnClick="btnDelete_Click"/></li>
                <li><a href='<%="gather_default.htm?sort=1"+"&uid="+this.uid %>'>返回</a></li>
            </ul>
            <table cellspacing="2">
                <tr>
                    <td>图片(链接):</td>
                    <td>
                        <asp:TextBox ID="txtLink" runat="server" Width="300"/>
                        <input type="checkbox" id="chkUpload" name="chkUpload" onclick="enableUpload(this)"/><label for="chkUpload">上传图片?</label>
                        <span id="uploadSpan" runat="server" style="display:none">
                            <asp:FileUpload ID="Uploader" runat="server"/>
                            <asp:Button ID="uploadButton" class="button_blue r5px" runat="server" Text="上传" OnClick="uploadButton_Click" CausesValidation="false"/>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLink" ErrorMessage=" * 必须" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>标题:</td>
                    <td><asp:TextBox ID="txtTitle" runat="server" Width="500" /><asp:RequiredFieldValidator runat="server" ControlToValidate="txtTitle" ErrorMessage=" * 必须" /></td>
                </tr>
                <tr>
                    <td>地点:</td>
                    <td><asp:TextBox ID="txtSite" runat="server" Width="500" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSite" ErrorMessage=" * 必须" /></td>
                </tr>
                <tr>
                    <td valign="top">描述:</td>
                    <td><asp:TextBox ID="txtDescription" runat="server" Rows="10" Width="500" TextMode="MultiLine" /></td>
                </tr>
            </table>
            <ul class="menutabs">
                <li><asp:LinkButton ID="btnOK" runat="server" Text="确定" OnClick="btnOK_Click"/></li>
                <li><asp:LinkButton ID="btnDelete" runat="server" Text="删除" CausesValidation="false" OnClick="btnDelete_Click"/></li>
                <li><a href='<%="gather_default.htm?sort=1"+"&uid="+this.uid %>'>返回</a></li>
            </ul>
        </div>
    </form>
   <script type="text/javascript">
       var uploadSpan = "<%=uploadSpan.ClientID %>";
       var txtLink = "<%=txtLink.ClientID %>";
       function enableUpload(chk) {
           if (chk.checked) {
               document.getElementById(uploadSpan).style.display = "inline";
           }
           else {
               document.getElementById(uploadSpan).style.display = "none";
           }
       }
   </script>
</asp:Content>
